<%@ page contentType="text/html; charset=utf-8" language="java"
 import="java.sql.*,java.util.* ,com.aptech.restrant.Bean.*,com.aptech.restrant.Controller.*,com.aptech.restrant.Model.*"  errorPage="" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%
	String path = request.getContextPath();

 %>
<html xmlns="http://www.w3.org/1999/xhtml">

	<head>

		<title>管理员登陆</title>




<style>
html,body {
	margin: 0;
	padding: 0;
	position: relative;
	font-family: "微软雅黑", "黑体", "宋体";
	color: #1577ca;
	font-size: 12px;
}



.admin_login_top {
	width: 893px;
	height: 268px;
	margin: 0 auto;
	background-image: url(../login.jpg);
	position: relative;
}

#btn_submit {
	cursor: pointer;
}

#random {
	cursor: pointer;
}
</style>
	</head>


	<body>
	<script language="javascript">

	function checkUserInfo() {
	 if(document.form1.username.value==""){
	    alert("用户名不能为空");
	    return false;
	 }
	 if(document.form1.password.value==""){
	    alert("密码不能为空");
	    return false;
	 }
	 return true;
	}
	
</script>

		<div class="admin_login_main">
			<form id="form1" name="form1" action=" <%=path %>/servlet/AdminLogin"  method="post">
				<table   border="000" align="center"
					cellpadding="0" cellspacing="0" bgcolor="#eeeeee" style="margin-top: 70px;">
					<tr>
					
						<td colspan="2" >
						<img src="../images/login.gif" />
					
						</td>
					</tr>
						<tr>
					
						<td colspan="2" align="center" style="padding:15px;">
						用户登陆
					
						</td>
					</tr>
					<tr>
						<td width="200" align="center" style="padding:15px;">
							用户名 ：
						</td>
						<td style="padding:15px;">
							<input name="username" type="text" id="username"
								style="width: 140px;" size="20" maxlength="20" />
						</td>
					</tr>
					<tr >
						<td align="center" style="padding:15px;"> 
							密 &nbsp; 码 ：
						</td>
						<td style="padding:15px;">
							<input style="width: 140px;" type='password' id='password' name='password' />
						</td>
					</tr>
					<tr >
						<td align="center" style="padding:15px;"> 
							登陆类型 ：
						</td>
						<td style="padding:15px;">
							<select name="utype" size="1" tabindex="3">
							<option value="student" selected="">学生</option>
							<option value="teacher" selected="">教师</option>
						    <option value="manager" selected ="">管理员</option>
						    </select>
						</td>
					</tr>
					<tr>
						

						<td colspan="2" align="center" style="padding:15px;">
						<input type="submit" name="submit" value="登陆" />  &nbsp;&nbsp;&nbsp;
                         <input type="reset" name="clear" value="reset" />
									


						</td>
						
					</tr>

				</table>




			</form>
		</div>

	</body>
</html>
